package com.winterchen.controller;

import com.winterchen.manager.BrowserManager;
import com.winterchen.model.UserDomain;
import com.winterchen.model.Ywpt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * Created by Administrator on 2017/8/16.
 */
@Controller
@RequestMapping(value = "/browser")
public class OpenBrowserController {

    @Autowired
    private BrowserManager browserManager;

    @ResponseBody
    @GetMapping("/open")
    public int addUser(UserDomain user){
        return browserManager.openChrome();
    }
    @ResponseBody
    @PostMapping("/updateejk")
    public int updateEjk(Integer id){
        return browserManager.updateEjk(id);
    }
    @ResponseBody
    @RequestMapping("/getDetail")
    public Ywpt selectYwptDetail(String shouLiId){
        return browserManager.selectYwptDetail(shouLiId);
    }


}
